Skip to content

Bump jquery-form from 4.3.0 to 4.6.0 - #76

Merged
bytestream merged 1 commit into
masterfrom
dependabot/npm_and_yarn/jquery-form-4.6.0
Dec 1, 2026
Merged

bytestream merged 1 commit into
masterfrom
dependabot/npm_and_yarn/jquery-form-4.6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Bumps jquery-form from 4.3.0 to 4.6.0.

Release notes

Sourced from jquery-form's releases.

4.6.0

[!WARNING] src/jquery.form.js is an ES module in this release, not the classic build it was in 4.3.0. It also imports the other files in src/. A page or build that copies it by path and loads it as a classic script fails, and ajaxForm() and ajaxSubmit() are undefined. require("jquery-form"), import "jquery-form" and bundlers aren't affected. Update to 4.6.1, which ships the classic build at that path again, or copy dist/jquery.form.js instead. The same applies to cdnjs: https://cdnjs.cloudflare.com/ajax/libs/jquery.form/4.6.0/jquery.form.js serves this ES module, because cdnjs copies src/jquery.form.js over the classic build. Use jquery.form.min.js, which is correct, or 4.6.1.

A bug-fix release. No breaking changes are intended. Behavior changes only where the old behavior was a bug or differed from a native form submission, so read the list below if your code relied on any of them. jQuery 1.7.2 or later is still supported. Every change is tested on jQuery 1.7.2, 3.7.1 and 4.0.0, and the test suite now runs on Chromium, Firefox and WebKit.

Fixes

  • target and iframeTarget strings are looked up only as selectors. Both were passed to $(), which builds elements from a string that looks like HTML and runs any inline handlers in it. A string is now looked up with $(document).find(). A selector finds the same elements as before. A string that starts with < matches nothing (and logs a message when $.fn.ajaxSubmit.debug is on). On jQuery 1.7.2, a selector with a tag in an attribute value, such as div[title="<b>"], now works. Elements and jQuery objects are used as given.
  • A lone surrogate is sent as U+FFFD. formSerialize, fieldSerialize, ajaxSubmit and iframe uploads threw URIError when a field name or value, or a key or string value in data or extraData, held an unpaired UTF-16 surrogate. Each one is now replaced with U+FFFD, as a native form submission and FormData do. A string data option is passed through unchanged.
  • Spaces encode as + on every jQuery version. On jQuery 3 and later, formSerialize, fieldSerialize, GET query strings and urlencoded bodies wrote a space as %20, while jQuery 1 and 2 and a native form submission write +. They now write + everywhere. Servers decode both the same way; only code that compares the strings sees a difference.
  • An iframe response that cannot be parsed rejects with parsererror, as error and complete already reported. When the response also carries an error status (a status attribute outside 2xx), error, ajaxError and the rejection receive its statusText, as $.ajax reports a server error.
  • An iframe upload no longer sends a clicked button that a disabled <fieldset> disables, as the other transports and a native submission already did.

Packaging

  • Bundlers get the module build. The browser field pointed at the minified classic build, so webpack, Vite and Browserify bundled it. It is removed: webpack and Vite use module (dist/jquery.form.mjs) and Browserify uses main (dist/jquery.form.js). New jsdelivr and unpkg fields keep a bare CDN URL serving dist/jquery.form.min.js.
  • The CommonJS factory uses the window it is given. require("jquery-form")(root, $) read the global window and document, so it threw in Node without a global DOM. It now takes them from root.
  • LICENSE-MIT is in the package, next to LICENSE. The license field is now the SPDX expression (LGPL-2.1-or-later OR MIT): the same terms, written the current way.
  • The package homepage is the docs site, https://jquery-form.github.io/form/.

Deprecations

  • Replacing $.fieldValue to change what is serialized logs a deprecation warning once per page when $.fn.ajaxSubmit.debug is on. It still works in 4.x; 5.0 drops it, so use jQuery valHooks instead.
  • The API docs now have a Deprecations section listing every warning and its replacement.

Docs

  • The README is now a short landing page: installation, usage (module import, CommonJS, script tag), file uploads, compatibility and security. The full reference is on the docs site.
  • The docs site's links to old malsup.com pages point at its own pages, and its demos load over https.
  • Bug reports use an issue form that asks for the plugin, jQuery and browser versions. Security reports go through SECURITY.md.

Full changelog: jquery-form/form@v4.5.0...v4.6.0

4.5.0

[!WARNING] src/jquery.form.js is an ES module in this release, not the classic build it was in 4.3.0. It also imports the other files in src/ now. A page or build that copies it by path and loads it as a classic script fails, and ajaxForm() and ajaxSubmit() are undefined. require("jquery-form"), import "jquery-form" and bundlers aren't affected. Fixed in 4.6.1; on this release, copy dist/jquery.form.js instead.

The plugin's source is now split into modules, and this release fixes a long list of bugs found while pinning down its behavior. No breaking changes are intended. Behavior changes only where the old behavior was a bug or differed from a native form submission, so read the lists below if your code relied on any of them. jQuery 1.7.2 or later is still supported. Every change is tested on jQuery 1.7.2, 3.7.1 and 4.0.0.

New

  • delegation: "<selector>" limits ajaxForm delegation to forms that match a selector (#353). delegation: true is unchanged, but it now logs a warning on jQuery 3 and later, where it binds every form on the page.
  • ajaxFormUnbind() also removes delegated bindings, and ajaxFormUnbind(selector) removes one of them.
  • requestFormat: "json" sends the form as a JSON body (#545). The idea came from #557 by @​zhangciwu.
  • error and complete accept arrays of functions, as in $.ajax.
  • ajaxSubmit on jQuery's slim build throws a clear error (#541) instead of failing later.

Deprecations

... (truncated)

Commits
  • a94d7c1 Merge pull request #644 from jquery-form/release-4.6.0
  • 3fbdb89 docs: record the 4.6.0 test count, mutation score and pre-merge checks
  • 9d5f913 docs: record the mutation testing results for the 4.6.0 merge
  • f2dd390 test: pin that an upload removes the load listener it added to a supplied ifr...
  • 866b7a1 test: pin that selectorOption looks a selector up in the given document
  • 46f5cf6 test: pin that the clicked button is kept for the 100 ms click window, then c...
  • 5a96474 test: pin the read error over the statusText when an iframe error response fa...
  • 3b04eb9 test: pin urlencode for file names and array data with lone surrogates
  • 1f349c7 test: pin that selectorOption matches and parses nothing for HTML, and logs i...
  • 940f87a docs: add the mutation testing plan for the 4.6.0 merge
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for jquery-form since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [jquery-form](https://github.com/jquery-form/form) from 4.3.0 to 4.6.0.
- [Release notes](https://github.com/jquery-form/form/releases)
- [Commits](jquery-form/form@v4.3.0...v4.6.0)

---
updated-dependencies:
- dependency-name: jquery-form
  dependency-version: 4.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 30, 2026
@bytestream
bytestream merged commit 527eddb into master Dec 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant